package com.ftcs.controller.common.util;

import lombok.extern.slf4j.Slf4j;

import static com.ftcs.controller.common.util.MessageFormatter.build;


/**
 * @author changhuafeng
 * @version V1.0.0
 * @since 2019/3/4
 */
@Slf4j
public class SystemErrorLog {


    public static void error(String format, Object... args) {
        log.error(build(format, args));
    }

    public static void error(Throwable t, String format, Object... args) {
        log.error(build(format, args), t);
    }

}